package com.zhongketech.sunflower.transport;

import java.util.HashMap;
import java.util.Map;

import android.util.Log;

import com.google.gson.Gson;
import com.zhongketech.sunflower.transport.model.User;
import com.zhongketech.sunflower.transport.uitl.NetTransportUtil;

public class Action {

	public User signUp()
	{
		User user = null;
		Map<String,String> userMap = new HashMap<String, String>();	
		userMap.put("role", "student");
		userMap.put("phone", "13888888888");
		userMap.put("password", "1234");
		userMap.put("gender", "male");
		userMap.put("name", "kemy");
		userMap.put("birthday", "1980-01-01T00:00:00Z");
		userMap.put("device_id", "kemy18888888888");
		String result = NetTransportUtil.getContentByPost(InterfaceUrls.signUp, userMap);
		Log.i("Action","signUp:"+result);
		Gson gson = new Gson();
		user = gson.fromJson(result, User.class);
		
		return user;
	}
	
}
